{extend name="base" /} {block name="body"}
<div class="layui-tab layui-tab-brief">
    <ul class="layui-tab-title">

        <li class="layui-this">QQ登录</li>
    </ul>
</div>
<form class="layui-form form-container" data-url="{:url('admin/service/updateqqlogin')}" localtion-url="{:url('service/qqlogin')}">

    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <div class="layui-form-item">
                <label class="layui-form-label">开关</label>
                <div class="layui-input-block">
                    <input type="radio" name="config[status]" value="1" title="开启" {if condition="$config.status eq 1" }checked{/if}>
                    <input type="radio" name="config[status]" value="0" title="关闭" {if condition="$config.status eq 0" }checked{/if}>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">APP ID</label>
                <div class="layui-input-inline">
                    <input type="text" name="config[appid]" value="{$config.appid|default=''}" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">APP Key</label>
                <div class="layui-input-block">
                    <input type="text" name="config[appkey]" value="{$config.appkey|default=''}" autocomplete="off" class="layui-input">
                </div>
                <div class="label-tint">点击 <a href="https://connect.qq.com" target="_blank">https://connect.qq.com</a> 申请</div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">网站回调域</label>
                <div class="layui-input-block">
                    <input type="text" name="config[callback]" value="{$config.callback|default='http://你的域名/applogin/qqcb.html'}" placeholder="填写与申请时一致的网站回调地址" autocomplete="off" class="layui-input">
                </div>
                <div class="label-tint"> 格式：http://你的域名/applogin/qqcb.html</div>
            </div>
            <div class="formbtngroup">
                <a target="_blank" href="https://www.laysns.com/thread/378.html">配置文档 <i class="layui-icon layui-icon-tips"></i></a>
                <button id="creatlink" class="layui-btn layui-btn-sm" lay-submit="" type="submit" lay-filter="formadd">保存</button>
            </div>
        </div>

</form>

{/block} {block name="js"}
<script type="text/javascript" src="__ADMIN__/js/formadd.js"></script>

{/block}